<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <h1>大家啊都很棒</h1>
   <form>
    <input type="text">
    <input type="text">
    <input type="submit" value="okkkk">
   </form>
   <script src="./jquery引入文件/jquery-1.12.4.min.js"></script>
   <script>
    $('input[type="submit"]').on('click',(e)=>{
        e.preventDefault();
        $.ajax({
            method:'post',
            url:'http://localhost:3000/wjypost',
            success:(data)=>{
                console.log(data);
            },
            error:(err)=>{
                console.log(err);
            }
        })
    })
   </script>
</body>
</html>